package com.qdlc.p2p.dal.model;

import org.springframework.beans.BeanUtils;

import com.qdlc.p2p.dal.dto.UserFreeze;

public class UserFreezeModel extends UserFreeze {

	private String userName;
	
	/** 条件查询 */
	private String searchName;
	public static UserFreezeModel instance(UserFreeze freeze) {
		UserFreezeModel freezeModel = new UserFreezeModel();
		BeanUtils.copyProperties(freeze, freezeModel);
		return freezeModel;
	}

	public UserFreeze prototype() {
		UserFreeze freeze = new UserFreeze();
		BeanUtils.copyProperties(this, freeze);
		return freeze;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}
	
	
	
	public String getMarkStr(){
		String mark = "";
		if(super.getMark().contains("recharge")){
			mark = "充值 ";
		}
		if(super.getMark().contains("cash")){
			mark += " 提现";
		}
		if(super.getMark().contains("tender")){
			mark += " 投标";
		}
		return mark;
	}
	
}
